package xyz.bali16.module.follow.utils;

public class FollowRedisKeyUtil {

    private static final String SPLIT = ":";
    private static final String PREFIX_ZSET_FOLLOWEE = "followee";
    private static final String PREFIX_ZSET_FOLLOWER = "follower";

    /*
     * 关注功能
     */
    // 某个用户关注的实体
    public static String getFolloweeKey(String userId) {
        return PREFIX_ZSET_FOLLOWEE + SPLIT + userId;
    }

    // 某个用户拥有的粉丝
    public static String getFollowerKey(String userId) {
        return PREFIX_ZSET_FOLLOWER + SPLIT + userId;
    }


}
